package com.sita.redsun.connector.service.core.impl;

import com.sita.redsun.connector.service.common.requestbody.MTInfo;
import com.sita.redsun.connector.service.core.RedSunService;
import com.sita.redsun.connector.session.SessionMap;
import com.sita.redsun.connector.session.SunSession;
import org.springframework.stereotype.Service;

/**
 * Created by zhebinwang on 2017/4/1.
 */

@Service
public class RedSunServiceImpl implements RedSunService {


    @Override
    public void doMt(MTInfo info) {

        SunSession sunSession=SessionMap.sharedInstance().getSession(info.getGpsid());
        sunSession.write("78782D19"+info.getGpsid()+"000D0A");


    }
}
